#include<stdio.h>
main()
{
	int num,i=0;
	char second[32],t;
	scanf("%d",&num);
	while(num)
	{
		second[i++]=num%2+'0';
		num/=2;
	}
	second[i]=0;
	for(int j=0;j<i/2;j++)
	{
		t=second[j];
		second[j]=second[i-1-j];
		second[i-1-j]=t;
	}
	printf("%s",second);
}